<template>
    <div>
      <h1>首页</h1>
      <el-button @click="test1">测试token</el-button>
    </div>
</template>

<script setup>
 import {hello} from "@/api/user.js";

 const test1 = () => {
    hello().then(res => {
      console.log(res.data);
    })
 }
</script>

<style scoped>

</style>